package microcredit.gui.editor.training;

import microcredit.gui.base.EnumComboBox;
import microcredit.model.domain.TrainingStatus;

public class TrainingStatusCombobox extends EnumComboBox<TrainingStatus>{

	private static final long serialVersionUID = 1L;

	public TrainingStatusCombobox() {
		super(TrainingStatus.values(), true);
	}
	
	@Override
	public String convertToString(TrainingStatus enumValue) {
		if (enumValue == null) {
			return "<< please select >>";
		}
		return enumValue.getDisplayName();
	}
}
